#include <bits/stdc++.h>
using namespace std;
const int N=1e5+10;
int a[N],b[N];
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    int n;
    scanf("%d",&n);
    for(int i=1;i<=n;i++)
    {
        scanf("%d",&a[i]);
    }
    sort(a+1,a+n+1);
    for(int i=1;i<=n;i++)
        b[i]=a[i];
    int ans=n;
    for(int i=2,j=1;i<=n&&j<n;i++)
    {
        while(a[i]>b[j] && i<=n && j<n)
        {
            ans--;
            i++;
            j++;
        }
    }
    printf("%d",ans);
    return 0;
}
